package com.ojoin.trade.supplyloan_core.web.domain;

import java.util.Date;

/**
 * Created with IntelliJ IDEA. User: Administrator Date: 15-10-29 Time: 下午2:55
 * To change this template use File | Settings | File Templates.
 */
public class TbSlLoanStatTotalVo {

	private Integer idOfTbMerchantUser;

	private Integer idOfPlatformUser;

	private String mhtname;

	private String platformUname;

	private long totalUnsettleInstoreorder;

	private long totalUnenterinRefundorder;

	private long totalUnpaySettleorder;

	private long totalPaySettleorder;

	private long totalUnpaySettleorderCheck;

	private long newUnpaySettleorderCheck;

	private String statEndDate;

	private String platformName;

	private Date rowCreateTime;

	private String platformCnname;

	private long totalAll;

	// 按不同的平台进行数据的显示
	public long getTotalAll() {

		if (TbSlPlatformInfo.SUPPLIER_SUNING.equals(this.getPlatformName())) {
			totalAll = this.getTotalUnsettleInstoreorder() + this.getTotalUnenterinRefundorder()
					- this.getTotalPaySettleorder();
		} else if (TbSlPlatformInfo.THIRDSELLER_SUNING.equals(this.getPlatformName())) {
			totalAll = this.getTotalUnsettleInstoreorder() + this.getTotalUnenterinRefundorder()
					- this.getTotalPaySettleorder() +this.getTotalUnpaySettleorderCheck()+ this.getTotalUnpaySettleorder();
		} else {
			totalAll = this.getTotalUnsettleInstoreorder() + this.getTotalUnenterinRefundorder()
					- this.getTotalPaySettleorder() + this.getTotalUnpaySettleorderCheck()+this.getTotalUnpaySettleorder();
		}

		return totalAll;
	}

	public long getTotalUnsettleInstoreorder() {
		return totalUnsettleInstoreorder;
	}

	public void setTotalUnsettleInstoreorder(long totalUnsettleInstoreorder) {
		this.totalUnsettleInstoreorder = totalUnsettleInstoreorder;
	}

	public long getTotalUnenterinRefundorder() {
		return totalUnenterinRefundorder;
	}

	public void setTotalUnenterinRefundorder(long totalUnenterinRefundorder) {
		this.totalUnenterinRefundorder = totalUnenterinRefundorder;
	}

	public long getTotalUnpaySettleorder() {
		return totalUnpaySettleorder;
	}

	public void setTotalUnpaySettleorder(long totalUnpaySettleorder) {
		this.totalUnpaySettleorder = totalUnpaySettleorder;
	}

	public long getTotalPaySettleorder() {
		return totalPaySettleorder;
	}

	public void setTotalPaySettleorder(long totalPaySettleorder) {
		this.totalPaySettleorder = totalPaySettleorder;
	}

	public Date getRowCreateTime() {
		return rowCreateTime;
	}

	public void setRowCreateTime(Date rowCreateTime) {
		this.rowCreateTime = rowCreateTime;
	}

	public Integer getIdOfPlatformUser() {
		return idOfPlatformUser;
	}

	public void setIdOfPlatformUser(Integer idOfPlatformUser) {
		this.idOfPlatformUser = idOfPlatformUser;
	}

	public String getPlatformName() {
		return platformName;
	}

	public void setPlatformName(String platformName) {
		this.platformName = platformName;
	}

	public String getMhtname() {
		return mhtname;
	}

	public void setMhtname(String mhtname) {
		this.mhtname = mhtname;
	}

	public Integer getIdOfTbMerchantUser() {
		return idOfTbMerchantUser;
	}

	public void setIdOfTbMerchantUser(Integer idOfTbMerchantUser) {
		this.idOfTbMerchantUser = idOfTbMerchantUser;
	}

	public String getStatEndDate() {
		return statEndDate;
	}

	public void setStatEndDate(String statEndDate) {
		this.statEndDate = statEndDate == null ? null : statEndDate.trim();
	}

	public String getPlatformUname() {
		return platformUname;
	}

	public void setPlatformUname(String platformUname) {
		this.platformUname = platformUname;
	}

	public String getPlatformCnname() {
		return platformCnname;
	}

	public void setPlatformCnname(String platformCnname) {
		this.platformCnname = platformCnname;
	}

	public long getTotalUnpaySettleorderCheck() {
		return totalUnpaySettleorderCheck;
	}

	public void setTotalUnpaySettleorderCheck(long totalUnpaySettleorderCheck) {
		this.totalUnpaySettleorderCheck = totalUnpaySettleorderCheck;
	}

	public long getNewUnpaySettleorderCheck() {
		return newUnpaySettleorderCheck;
	}

	public void setNewUnpaySettleorderCheck(long newUnpaySettleorderCheck) {
		this.newUnpaySettleorderCheck = newUnpaySettleorderCheck;
	}
}
